package com.yu.mall.util;

import java.net.MalformedURLException;
import java.net.URL;

public class URLUtils {

    public static String getHost(String link) throws MalformedURLException {
        URL url = new URL(link);
        return  url.getHost();
    }
}
